package net.shopxx.action.shop;
import javax.annotation.Resource;

import net.shopxx.entity.Member;
import net.shopxx.service.MemberService;

@SuppressWarnings("serial")
public class FlexAction extends BaseShopAction {

	@Resource
	private MemberService memberService;
	private Member member;
	public Member getMember() { return member; }
	public void setMember(Member member) {	this.member = member; }
	
	public String updatefacial(){
		
		Member updateMember = memberService.getMemberByUsername(member.getUsername() + "");
		if (updateMember != null){
			System.out.println("custname:" + updateMember.getCustname() + "");
			updateMember.setFace(member.getFace() + "");
			updateMember.setBrow(member.getBrow() + "");
			updateMember.setTemple(member.getTemple() + "");
			memberService.update(updateMember);
		}
		
		return "updatefacial";
	}
	
}
